home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sounds Terrific 2
/
Sounds Terrific II (1996)(Weird Science)(Disc 1 of 2)[Amiga-PC].iso
/
archives
/
amiga
/
tracker_4_31.lzh
/
tracker
/
build_vibrato.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-21
|
372b
|
25 lines
/* the small file that is used to generate an accurate vibrato table */
#include <math.h>
#include <stdio.h>
main()
{
int i;
int amplitude = 512;
int period = 64;
double th;
double pi;
pi = 4.0 * atan(1.0);
for (i = 0; i < period; i++)
{
th = 2.0 * pi * i / (double)period;
printf("%d,", (int) (0.5 + sin(th) * (double)amplitude));
}
return 0;
}